#define _CRT_SECURE_NO_WARNINGS 1

#include<iostream>
using namespace std;

class A
{
public:
	virtual void func(int x = 10)
	{
		cout << "A:" << x << endl;
	}
};

//class B:public A
//{
//public:
//	void func(int x = 12)
//	{
//		cout <<"B:" << x << endl;
//	}
//};

int main()
{
	A* pa = new A;
	pa->func();
	return 0;
}